<?php
/**
 * Created by PhpStorm.
 * User: AivyYuan
 * Date: 2016/9/5
 * Time: 15:36
 */
namespace app\modules\api\controllers;

use yii\web\Controller;

class IndexController extends Controller{
    private $appid = '123456';
    public $enableCsrfValidation = false;
    public function actionIndex(){
        if(\Yii::$app->request->isPost){
            $data = \Yii::$app->request->post();

        }
    }
    private function check($data){
        $appid = $data['appid'];
        if($appid != $this->appid){
            return 'abc';
        }
    }
}
